package com.rrjjg.app.core.exception;

public class RjException extends RuntimeException{
    private int code;
    public RjException(MsgEnum msgEnum) {
        super(msgEnum.getMgs());
        this.code = msgEnum.getCode();
    }

    public RjException(String message, int code) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
